home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
preccx
/
prccx240.lha
/
makefile.dos
< prev
next >
Wrap
Makefile
|
1993-05-27
|
2KB
|
89 lines
CFLAGS=
CC=tc /m
ARCHIVER=TLIB
ROOT=\HOME
BINDIR=.
EXECUTABLE=preccx.exe
MODEL=C
TOKENSIZE=1
LIBDIR=\HOME\C\LIB
LIBRARY=PRECCX$(TOKENSIZE)$(MODEL).lib
DOCS=history preccx.1 preccx.man PACKING.LST REGISTER.DOC LICENSE.DOC INSTALL.INS README bugs.knw
SPECS=preccx.y lex.y c.y
LIBSRCS=cc.c ccdata.c ccx.c common.c engine.c on_error.c yystuff.c
SOURCES=$(LIBSRCS) preamble.c preccx.c MAKEFILE MAKEFILE.DOS preccx.y preccx.prj preccx.h preamble.h
LIBRARIES=$(LIBDIR)\preccx??.lib
HEADERS=cc.h ccx.h
OBJECTS=cc.obj ccdata.obj ccx.obj common.obj engine.obj on_error.obj yystuff.obj
PRECIOUS=preccn.exe preccx.exe precc.exe preccx.c preccx.y preccn.y c.y lex.y
$(EXECUTABLE): preccx.c preamble.c c.c lex.c cc.h preccx.h preamble.h $(LIBRARY)
- $(CC) $(CFLAGS) preccx.prj
preccx.c: preccx.y
echo need to remake preccx.c
echo try .\precc[x] preccx.y preccx.c
lex.c: lex.y
echo need to remake lex.c
echo try .\precc[x] lex.y lex.c
c.c: c.y
echo need to remake c.c
echo try .\precc[x] c.y c.c
library: objects
- if exist $(LIBRARY) del $(LIBRARY)
- $(ARCHIVER) $(LIBRARY) +cc.obj +ccx.obj +engine.obj +common.obj +ccdata.obj +yystuff.obj +on_error.obj
- del *.obj
libraries: libraryC libraryL
libraryC:
make -f makefile.dos library CFLAGS=-DTOKEN=char TOKENSIZE=1 MODEL=C
make -f makefile.dos library CFLAGS=-DTOKEN=int TOKENSIZE=2 MODEL=C
make -f makefile.dos library CFLAGS=-DTOKEN=long TOKENSIZE=4 MODEL=C
libraryL:
make -f makefile.dos library CFLAGS=-DTOKEN=char TOKENSIZE=1 MODEL=L
make -f makefile.dos library CFLAGS=-DTOKEN=int TOKENSIZE=2 MODEL=L
make -f makefile.dos library CFLAGS=-DTOKEN=long TOKENSIZE=4 MODEL=L
objects: $(LIBSRCS) $(HEADERS)
- $(CC) $(CFLAGS) preccx$(TOKENSIZE)$(MODEL).prj
install: install-bin install-lib
install-bin: $(EXECUTABLE)
- copy $(EXECUTABLE) $(BINDIR)
install-lib: $(LIBRARY)
- copy $(LIBRARY) $(LIBDIR)
clean:
- del *.obj
echo remove $(EXECUTABLE)?
pause
- del $(EXECUTABLE)
echo remove $(LIBRARY)?
pause
- del $(LIBRARY)
distribution:
- pkzip preccx.zip $(DOCS)
- pkzip preccx.zip $(EXECUTABLE)
- pkzip preccx.zip $(HEADERS)
- pkzip preccx.zip $(LIBRARIES)